/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Box2;

/**
 *
 * @author amedeo.dal cortivo
 */
 class Box2 {
int width;
 int height;
int depth;
        void calculateVolume() {
  System.out.print("Volume is");
  System.out.println(width * height * depth);
        }
        void calculateArea(){
            System.out.print("Area is");
            System.out.println(width * height);
        }
        int calculateArea(int a){
           return width * width;
           
        }
        public static void main(String args[]){
            
            Box2 mybox1 = new Box2();
            mybox1.width = 10;
            mybox1.height = 20;
            mybox1.depth = 15;
            mybox1.calculateVolume();
            
            mybox1.calculateArea();
            int area;
            area = mybox1.calculateArea(10);
            System.outprintln("Area del quadrato:" + area);
            
            
        
        
        
    

